$(function () {
    $(".write-answer-btn").each(function () {
        $(this).on('click', function () {
            let id = $(this).attr('question-id');
            $("#answer-editor-" + id).removeClass('d-none');
            $(this).addClass('d-none');
        });
    });
});